<template>
  <div>
    <h2>我是Home组件</h2>
  </div>
</template>

<script>
  export default {
    name:'Home',
    mounted() {
      console.log('Home组件挂载了，出生完毕')
    },
    beforeDestroy() {
      console.log('Home组件即将销毁了，驾鹤西游之前')
    },
  }
</script>